<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport"
    content="width=device-width, initial-scale=1, maximum-scale=1,minimum-scale=1, user-scalable=no" />
  <title>11-10作业订正</title>
  <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
</head>

<body>
  <div class="box"></div>
  <script src="./js/work.js"></script>
  <script>
    // 1 求体积
    // let cylinder = new Cylinder(2, 10)
    // console.log('圆柱的体积是:' + cylinder.findVolume()) // 圆柱的体积是:125.7
    // cylinder.setRadius(1)
    // cylinder.setLength(1)
    // console.log('圆柱的体积是:' + cylinder.findVolume()) // 圆柱的体积是:3.14

    // 2 查看manKind的状态
    // let manKind = new ManKind(0, 10000)
    // manKind.employeed()
    // manKind.manOrWoman()
    // console.log('-------------修改性别后--------------')
    // manKind.setGender(1)
    // manKind.manOrWoman()

    // 3 查看someKid的状态
    console.log('-------------someKid--------------')
    let someKid = new Kids(1, 0, 20)
    someKid.setSalary(10000)
    someKid.setGender(0)
    someKid.setYearsOld(21)
    someKid.info()
    console.log(someKid.toString());
    someKid.printAge()
    console.log('-------------someKid1--------------')
    let someKid1 = new Kids(0, 0, 18)
    someKid1.info()
  </script>
</body>

</html>